package com.jinduplan.planmanager.mvp.contract

import com.cxz.kotlin.baselibs.mvp.IModel
import com.cxz.kotlin.baselibs.mvp.IPresenter
import com.cxz.kotlin.baselibs.mvp.IView
import com.jinduplan.planmanager.bean.*
import io.reactivex.rxjava3.core.Observable

/**
 * @author admin
 * @date 2018/11/20
 * @desc
 */
interface ProjectUploadSignContract {

    interface View : IView {
        fun uploadPicSuccess(picUrl: String)
        fun projectSignSuccess(bean: SignSuccess)
    }

    interface Presenter : IPresenter<View> {
        fun uploadInPic(file: String)
        fun sign(file: String, daily_construction_id: String, signature_date: String)
    }

    interface Model : IModel {
        fun uploadPic(file: String):Observable<HttpResult<PicSignSuccess>>
        fun sign(file:String, daily_construction_id: String, signature_date: String):Observable<HttpResult<SignSuccess>>
    }

}